package com.smartleanx.module.hrm.controller.app.eagin;

import com.smartleanx.framework.common.pojo.CommonResult;
import com.smartleanx.module.hrm.service.esign.auth.ElecSealService;
import com.smartleanx.module.hrm.service.esign.vo.OrgSealSelectVo;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "印章管理")
@RestController
@RequestMapping("/hrm/app/elec/Seal")
@AllArgsConstructor
public class ElecSealAppController {

    @Autowired
    private ElecSealService elecSealService;

    @GetMapping("/selectSealInfo")

    public CommonResult<Object> selectSealInfo(@RequestParam("corpId") Integer corpId) {
        OrgSealSelectVo orgSealSelectVo = elecSealService.selectSealInfo(corpId);
        return CommonResult.success(orgSealSelectVo);
    }


}
